<%layout("/common/_layout.html"){ %>
  <%#ajax userTable:{%>
<div class="am-cf am-padding">
  <div class="am-fl am-cf"> <strong class="am-text-primary am-text-lg">系统管理</strong>
    /
    <small>支付方式配置</small>
    /
    <small>${moduleName}</small>
  </div>
</div>
<div class="am-g">
  <div class="am-u-sm-12">
    <div class="am-scrollable-horizontal">
      <table class="am-table am-table-hover table-main">
        <thead>
          <tr class="am-text-nowrap">
            <th class="table-title">功能</th>
            <th class="table-title">操作</th>
          </tr>
        </thead>
        <tbody>
        <%for(pay in pays!){%>
          <tr>
            <td>${pay.name}</td>
        
            <!-- <td><a href="../website/toAuth?moduleId=${moduleId}&moduleName=${moduleName}&payId=${pay.id}&payName=${pay.name}">授权</a></td> -->
            <td><a href="../website/toAuthConfig?module_id=${moduleId}&moduleName=${moduleName}&payId=${pay.id}&payName=${pay.name}&pay_plat=${pay.code}">授权</a></td>
          </tr>
        <%}%>
        </tbody>
      </table>
    </div>
  </div>
</div>
<div class="am-margin">
    <!-- 分页 -->
    <%if (pays.~size >
    0){%>
    <%}else{%>
    <div class="am-kai">
      <h3>没有支付方式可授权!</h3>
    </div>
    <%}%></div>
</div>
<div class="am-padding" style="padding-top: 300px;background-color: #fff;">
  <button type="button" class="am-btn am-btn-warning am-btn-xs" onclick="location.href='${base}/website/payMethods';">返回上一级</button>
</div>
<%}%>
<%}%>


